//
//  GlobalURL.h
//  AmountBody
//
//  Created by smm on 17/12/6.
//  Copyright (c) 2017年 RCMTM. All rights reserved.
//
#pragma mark - 网络请求。。。

#pragma mark -- ***********首页
#define URl_Home_ListPost [NSString stringWithFormat:@"%@Index/article_list?",HTTP_HEADER_URL]
#define URl_Home_List(app_key,page,flag,typeid,direction,id) [NSString stringWithFormat:@"app_key=%@&page=%d&flag=%d&typeid=%@&direction=%@&id=%@",app_key,page,flag,typeid,direction,id]//新闻列表[page 当前页 flag 1 本日热文 4分类查询文章( typeid只有在这时候才有 )]
#define URl_Home_rankingPost [NSString stringWithFormat:@"%@Index/week_article?",HTTP_HEADER_URL]
#define URL_Home_ranking(app_key,page,flag) [NSString stringWithFormat:@"app_key=%@&page=%ld&flag=%ld",app_key,page,flag]//排行榜列表 [page 当前页 flag 2 本周阅读榜 3 本周分享榜]

#define URl_Home_LunboPost [NSString stringWithFormat:@"%@Index/slide?",HTTP_HEADER_URL]
#define URl_Home_Lunbo(app_key)[NSString stringWithFormat:@"app_key=%@",app_key]//轮播图

#pragma mark -- 自定义文章列表
#define URl_Home_CustomArticlePost [NSString stringWithFormat:@"%@Index/define_articles?",HTTP_HEADER_URL]
#define URl_Home_CustomArticle(app_key,page,direction,id) [NSString stringWithFormat:@"app_key=%@&page=%d&direction=%@&id=%@",app_key,page,direction,id]

#pragma mark -- 文章分类
#define URl_Home_ArticleClassPost [NSString stringWithFormat:@"%@Index/article_type?",HTTP_HEADER_URL]

#define URl_Home_ArticleClass(app_key) [NSString stringWithFormat:@"app_key=%@",app_key]

#pragma mark -- 分享成功调用
#define URl_Home_ShareSuccessPost [NSString stringWithFormat:@"%@Share/share_article?",HTTP_HEADER_URL]

#define URl_Home_ShareSuccess(app_key,spread_id) [NSString stringWithFormat:@"app_key=%@&spread_id=%@",app_key,spread_id]

#pragma mark --文章详情
#define URL_Home_Detail(key,id,master_id,user_id) [NSString stringWithFormat:@"%@Ajax/get_post_content_one?app_key=%@&post_id=%@&master_id=%@&user_id=%@",HTTP_HEADER_URL,key,id,master_id,user_id]//文章详情

#pragma mark --文章详情插入广告
#define URL_HomeAD_Detail(key,id,ad_type,master_id,user_id) [NSString stringWithFormat:@"%@Ajax/get_post_content_two?app_key=%@&post_id=%@&ad_type=%@&master_id=%@&user_id=%@",HTTP_HEADER_URL,key,id,ad_type,master_id,user_id]//文章详情插入广告

#pragma mark --推送详情
#define URL_Home_PushDetail(key,push_id) [NSString stringWithFormat:@"%@Apppush/index?app_key=%@&push_id=%@",HTTP_HEADER_URL,key,push_id]//推送详情

#pragma mark --文章分享详情链接
#define URL_Home_ShareDetail(spread_id,kp_id) [NSString stringWithFormat:@"%@Spread/index?spread_id=%@&kp_id=%@",HTTP_HEADER_URL,spread_id,kp_id]//文章分享详情链接

#pragma mark -- 采集文章接口
#define URl_Home_CaijiArticlePost [NSString stringWithFormat:@"%@Index/get_articles?",HTTP_HEADER_URL]

#define URl_Home_CaijiArticle(app_key,user_id,get_url) [NSString stringWithFormat:@"app_key=%@&user_id=%@&get_url=%@",app_key,user_id,get_url]


#pragma mark -- 广告类型列表
#define URL_MY_ADTypeListPost [NSString stringWithFormat:@"%@Share/adtype?",HTTP_HEADER_URL]
#define URL_MY_ADTypeList(app_key) [NSString stringWithFormat:@"app_key=%@",app_key]

#pragma mark --添加广告
#define URl_Home_AddADPost [NSString stringWithFormat:@"%@Share/add_ad?",HTTP_HEADER_URL]

#define URl_Home_AddAD(app_key,id,advertising_type,link_to,description,title,mobile,address,amount,name,if_defined,show_image_l) [NSString stringWithFormat:@"app_key=%@&post_id=%@&advertising_type=%@&link_to=%@&description=%@&title=%@&mobile=%@&address=%@&amount=%@&name=%@&if_defined=%@&show_image_l=%@",app_key,id,advertising_type,link_to,description,title,mobile,address,amount,name,if_defined,show_image_l]//（if_defined：3:微信地址 2：自定义链接地址 1：其它）
#pragma mark --添加开屏广告
#define URl_Home_AddKPADPost [NSString stringWithFormat:@"%@/Share/add_kp?",HTTP_HEADER_URL]

#define URl_Home_AddKPAD(app_key,kp_on,kp_type,kp_style,kp_link,if_defined,show_image_l) [NSString stringWithFormat:@"app_key=%@&kp_on=%@&kp_type=%@&kp_style=%@&kp_link=%@&if_defined=%@&show_image_l=%@",app_key,kp_on,kp_type,kp_style,kp_link,if_defined,show_image_l]//（if_defined：3:微信地址 2：自定义链接地址 1：其它

#pragma mark -- 广告没有编辑直接分享时
#define URL_MY_ADShareBeforePost [NSString stringWithFormat:@"%@Share/share_before?",HTTP_HEADER_URL]
#define URL_MY_ADShareBefore(app_key,post_id,advertising_type) [NSString stringWithFormat:@"app_key=%@&post_id=%@&advertising_type=%@",app_key,post_id,advertising_type]

#pragma mark -- 广告初始值
#define URL_MY_ADDafaultPost [NSString stringWithFormat:@"%@Ajax/ad?",HTTP_HEADER_URL]
#define URL_MY_ADDafault(ad_type,user_id,master_id) [NSString stringWithFormat:@"ad_type=%@&user_id=%@&master_id=%@",ad_type,user_id,master_id]


#pragma mark -- 开屏广告初始值
#define URL_MY_KPADDafaultPost [NSString stringWithFormat:@"%@Share/kp_setting?",HTTP_HEADER_URL]
#define URL_MY_KPADDafault(app_key) [NSString stringWithFormat:@"app_key=%@",app_key]

#pragma mark -- ***********效果
#pragma mark -- 动态分析
#define URl_Effect_DynamicAnalysisPost [NSString stringWithFormat:@"%@Dynamic/anilyses_list?",HTTP_HEADER_URL]
#define URl_Effect_DynamicAnalysis(app_key) [NSString stringWithFormat:@"app_key=%@",app_key]
#pragma mark -- 动态文章列表
#define URl_Effect_ArticleListPost [NSString stringWithFormat:@"%@Dynamic/article_statistic?",HTTP_HEADER_URL]
#define URl_Effect_ArticleList(app_key,page) [NSString stringWithFormat:@"app_key=%@&page=%d",app_key,page]

#pragma mark -- 伙伴统计及伙伴设置中一进去的伙伴列表（这是俩接口）
#define URL_Effect_PartnerListPost [NSString stringWithFormat:@"%@Dynamic/partner_statistic?",HTTP_HEADER_URL]
#define URL_Effect_PartnerList(app_key,page) [NSString stringWithFormat:@"app_key=%@&page=%d",app_key,page]

#pragma mark --删除伙伴
#define URL_Effect_PartnerDeletePost [NSString stringWithFormat:@"%@Mycenter/del_partner?",HTTP_HEADER_URL]
#define URL_Effect_PartnerDelete(app_key,id) [NSString stringWithFormat:@"app_key=%@&id=%@",app_key,id]

#pragma mark -- ***********个人中心

#define URL_MYPost [NSString stringWithFormat:@"%@Mycenter/index?",HTTP_HEADER_URL]//个人中心
#define URL_MY(app_key) [NSString stringWithFormat:@"app_key=%@",app_key]//个人中心

#pragma mark --普通网页（static_type：1.公司介绍 2.免责声明 3.技术支持 4.业务合作 5.加入我们 6.版本说明）
#define URL_MY_TypeDetailPost [NSString stringWithFormat:@"%@Mycenter/static_article?",HTTP_HEADER_URL]
#define URL_MY_TypeDetail(key,static_type) [NSString stringWithFormat:@"app_key=%@&static_type=%@",key,static_type]
#pragma mark --修改头像
#define URL_MY_UploadHeaderImagePost [NSString stringWithFormat:@"%@Mycenter/upt_pic?",HTTP_HEADER_URL]//修改头像
#define URL_MY_UploadHeaderImage(key) [NSString stringWithFormat:@"app_key=%@",key]

#pragma mark --优惠券列表
#define URL_MY_YHQPost [NSString stringWithFormat:@"%@Mycenter/quan_list?",HTTP_HEADER_URL]
#define URL_MY_YHQ(app_key,flag,page) [NSString stringWithFormat:@"app_key=%@&flag=%@&page=%d",app_key,flag,page]


#pragma mark --优惠券列表
#define URL_MY_YHQDeletePost [NSString stringWithFormat:@"%@Mycenter/del_quan?",HTTP_HEADER_URL]
#define URL_MY_YHQDelete(app_key,quan_id) [NSString stringWithFormat:@"app_key=%@&quan_id=%@",app_key,quan_id]

#pragma mark --优惠券验证
#define URL_MY_YHQYanzhengPost [NSString stringWithFormat:@"%@Mycenter/confirm_quan?",HTTP_HEADER_URL]
#define URL_MY_YHQYanzheng(app_key,quan_id,phone,code) [NSString stringWithFormat:@"app_key=%@&quan_id=%@&phone=%@&code=%@",app_key,quan_id,phone,code]

#pragma mark -- 背景模板选择
#define URL_MY_ChooseMouldPost [NSString stringWithFormat:@"%@Mycenter/help_background?",HTTP_HEADER_URL]
#define URL_MY_ChooseMould(app_key,helptype_id,page) [NSString stringWithFormat:@"app_key=%@&helptype_id=%@&page=%d",app_key,helptype_id,page]

#pragma mark -- 小助手上传图片
#define URL_MY_UploadPhotoPost [NSString stringWithFormat:@"%@Mycenter/add_help?",HTTP_HEADER_URL]
#define URL_MY_UploadPhoto(app_key,helptype_id) [NSString stringWithFormat:@"app_key=%@&helptype_id=%@",app_key,helptype_id]

#pragma mark -- 小助手图片类型选择（图片小助手列表）
#define URL_MY_xzsMouldPost [NSString stringWithFormat:@"%@Mycenter/helpad?",HTTP_HEADER_URL]
#define URL_MY_xzsMould(app_key) [NSString stringWithFormat:@"app_key=%@",app_key]

#pragma mark -- 小助手图片上传记录
#define URL_MY_xzsRecordPost [NSString stringWithFormat:@"%@Mycenter/help_list?",HTTP_HEADER_URL]
#define URL_MY_xzsRecord(app_key,helptype_id,page) [NSString stringWithFormat:@"app_key=%@&helptype_id=%@&page=%d",app_key,helptype_id,page]

#pragma mark -- 小助手图片记录删除
#define URL_MY_xzsRecordDeletePost [NSString stringWithFormat:@"%@Mycenter/del_help?",HTTP_HEADER_URL]
#define URL_MY_xzsRecordDelete(app_key,help_id) [NSString stringWithFormat:@"app_key=%@&help_id=%@",app_key,help_id]

#pragma mark -- 设置广告图片选择列表
#define URL_MY_adRecordPost [NSString stringWithFormat:@"%@Mycenter/helpad?",HTTP_HEADER_URL]
#define URL_MY_adRecord(app_key) [NSString stringWithFormat:@"app_key=%@",app_key]

#pragma mark -- 广告详情
#define URL_MY_ADSetDetailPost [NSString stringWithFormat:@"%@Mycenter/ad_info?",HTTP_HEADER_URL]
#define URL_MY_ADSetDetail(app_key) [NSString stringWithFormat:@"app_key=%@",app_key]

#pragma mark -- 选择伙伴类型（添加修改伙伴时候选择）
#define URL_MY_PartnerTypePost [NSString stringWithFormat:@"%@Mycenter/partner_type?",HTTP_HEADER_URL]
#define URL_MY_PartnerType(app_key) [NSString stringWithFormat:@"app_key=%@",app_key]

#pragma mark -- 添加修改伙伴
//参数：
//1.图片
//2.account_num 账号名
//3.Password 密码
//4.account_name 真实姓名
//5.partner_type 伙伴类型
#define URL_MY_OperationPartnerPost [NSString stringWithFormat:@"%@Mycenter/op_partner?",HTTP_HEADER_URL]

#define URL_MY_OperationPartner(app_key,account_num,password,account_name,partner_type,partnerid) [NSString stringWithFormat:@"app_key=%@&account_num=%@&password=%@&account_name=%@&partner_type=%@&id=%@",app_key,account_num,password,account_name,partner_type,partnerid]

#pragma mark --显示伙伴信息

#define URL_MY_ShowPartnerPost [NSString stringWithFormat:@"%@Mycenter/partner_info?",HTTP_HEADER_URL]
#define URL_MY_ShowPartner(app_key,id) [NSString stringWithFormat:@"app_key=%@&id=%@",app_key,id]


#pragma mark -- 启动页接口
#define URL_MY_QidongPost [NSString stringWithFormat:@"%@Ajax/firstad?",HTTP_HEADER_URL]


#pragma mark -- 登录
#define URL_MY_LoginPost [NSString stringWithFormat:@"%@Login/login?",HTTP_HEADER_URL]
#define URL_MY_Login(name,password) [NSString stringWithFormat:@"account_num=%@&password=%@",name,password]

#pragma mark -- 注册获取验证码
#define URL_MY_RegisterCodePost [NSString stringWithFormat:@"%@Login/get_checkcode?",HTTP_HEADER_URL]
#define URL_MY_RegisterCode(phone) [NSString stringWithFormat:@"phone=%@",phone]

#pragma mark -- 注册
#define URL_MY_RegisterPost [NSString stringWithFormat:@"%@Login/register?",HTTP_HEADER_URL]
#define URL_MY_Register(phone,code,password) [NSString stringWithFormat:@"phone=%@&code=%@&password=%@",phone,code,password]

#pragma mark -- 注册时体验时长
#define URL_MY_RegisterCountPost [NSString stringWithFormat:@"%@Login/get_setting?",HTTP_HEADER_URL]


#pragma mark -- app扫描登录##
#define URL_MY_ScanCodeLoginPost [NSString stringWithFormat:@"%@Mycenter/scan_login?",HTTP_HEADER_URL]
//#define URL_MY_ScanCodeLoginPost [NSString stringWithFormat:@"%@Mycenter/scan_login?",@"http://192.168.0.105:9088/index.php/app_wei"]

#define URL_MY_ScanCodeLogin(app_key,qrname) [NSString stringWithFormat:@"app_key=%@&qrname=%@",app_key,qrname]

#pragma mark -- 修改密码##
#define URL_MY_ModifyPost [NSString stringWithFormat:@"%@Mycenter/change_mypass?",HTTP_HEADER_URL]
#define URL_MY_Modify(app_key,old_pass,new_pass) [NSString stringWithFormat:@"app_key=%@&old_pass=%@&new_pass=%@",app_key,old_pass,new_pass]


